# -*- coding:utf-8 -*-
import requests
from prettyprinter import cpprint
import re

page = 1
url = 'https://www.newegg.com/p/pl'
user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36'
headers = { 'User-Agent' : user_agent }

keywords= {'d':'3080'}
response = requests.get(url=url,params=keywords,headers=headers)
print(response.text)

patterns = re.compile('https://www.newegg.com/.*?/p/[A-Z0-9]+',re.S)
items = re.findall(patterns,response.encoding)
# print(items[48])
